export class systemnotification {
  id?: number;
  name = '';
  mark = ''
  type = ''
  description = ''
  isWechat = ''
  wechatId = ''
  isRoutine = ''
  routineId = ''
  isSms = ''
  smsId = ''
  sendType = ''
  createTime = ''
  tempKey?: string
  title?: string
  content?: string
  status?: number | string
  constructor(data?: systemnotification) {
    data && this.setProps(data);
  }

  setProps(data: systemnotification) {
    (Object.keys(this) as Array<keyof Isystemnotification>).forEach((key) => {
      // @ts-ignore
      this[key] = data[key]
    })
  }
}

export type Isystemnotification = Omit<systemnotification, 'setProps'>